<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:cc="http://java.sun.com/jsf/composite"
	xmlns:p="http://primefaces.org/ui">

	<cc:interface>
		<cc:attribute name="list" />
	</cc:interface>

	<cc:implementation>
		<h:outputScript library="js" name="slideshow.js" />
		<style>
.caption {
	z-index: 500;
	position: absolute;
	bottom: -35px;
	left: 0;
	height: 50px;
	padding: 5px 10px 0 10px;
	background: #000;
	background: rgba(0, 0, 0, .5);
	width: 550px;
	font-size: 1.3em;
	line-height: 1.33;
	color: #fff;
	border-top: 1px solid #000;
	text-shadow: none;
}
/*
	Pagination
*/
ul[class=pagination] {
	position: relative;
	margin-left: 200px;
	width: 100px;
	bottom: 50px;
}

ul[class=pagination] li {
	float: left;
	margin: 0 1px;
	list-style: none;
}

ul[class=pagination] li a {
	display: block;
	width: 12px;
	height: 0;
	padding-top: 12px;
	background-image: url(../resources/images/pagination.png);
	background-position: 0 0;
	float: left;
	overflow: hidden;
}

ul[class=pagination] li.current a {
	background-position: 0 -12px;
}
</style>
		<script>
			jQuery(function() {
				jQuery('#slides')
						.slides(
								{
									preload : true,
									preloadImage : 'http://visualcoma.com/wp-content/uploads/2008/08/loading1.gif',
									play : 5000,
									pause : 2500,
									effect : 'fade',
									hoverPause : true,
									animationStart : function(current) {
										jQuery('.caption').animate({
											bottom : -45
										}, 100);
									},
									animationComplete : function(current) {
										jQuery('.caption').animate({
											bottom : 0
										}, 200);
									},
									slidesLoaded : function() {
										jQuery('.caption').animate({
											bottom : 0
										}, 200);
									}
								});
			});
		</script>

		<div id="slides">
			<div class="slides_container">
				<cc:insertChildren />
			</div>
			<a href="#" class="prev"
				style="position: relative; bottom: 200px; z-index: 100;"><img
				src="img/arrow-prev.png" width="24" height="43" alt="Arrow Prev" />
			</a> <a href="#" class="next	"
				style="position: relative; bottom: 200px; margin-left: 520px; z-index: 100;"><img
				src="img/arrow-prev.png" width="24" height="43" alt="Arrow Next" />
			</a>
		</div>



	</cc:implementation>
</ui:composition>